<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="table">
		<table border="1" name="entity">
			<tr>
				<td>实体：</td>
				<td>
					<input id="name" name="name">
						<xsl:attribute name="value">
							<xsl:value-of select="./@name" />
						</xsl:attribute>
					</input>
				</td>
			</tr>
			<xsl:for-each select="//column">
				<tr>
					<td>属性：</td>
					<td>
						<input name="property">
							<xsl:attribute name="value">
								<xsl:value-of select="./@name"></xsl:value-of>
							</xsl:attribute>
						</input>
					</td>
					<td>数据类型</td>
					<td>
						<input name="dataType">
							<xsl:attribute name="id"><xsl:value-of
								select="./@name"></xsl:value-of>.dataType</xsl:attribute>
							<xsl:attribute name="value">
								<xsl:value-of select="./@dataType"></xsl:value-of>
							</xsl:attribute>
						</input>
					</td>
				</tr>
			</xsl:for-each>

		</table>
	</xsl:template>

	
</xsl:stylesheet>